package com.ydkj.a37e_mall.Classes.Model.Request;

import android.util.Log;

import com.ydkj.a37e_mall.Resource.Utils.Rsa;

/**
 * Created by Administrator on 2017/3/6.
 */

public class OrderPayReq {
    private String uuid;
    private String id;
    private String pay_type_id;
    private String payout_password;
    private String secret;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPay_type_id() {
        return pay_type_id;
    }

    public void setPay_type_id(String pay_type_id) {
        this.pay_type_id = pay_type_id;
    }

    public String getPayout_password() {
        return payout_password;
    }

    public void setPayout_password(String payout_password) {
        this.payout_password = payout_password;
    }

    public String urlString() {
        return "order/order_payout";
    }

    public String getSecret() {

        String string = "uuid=" + uuid + "&id=" + id + "&pay_type_id=" + pay_type_id + (payout_password == "" ? "" : "&payout_password=" + payout_password);
        try {
            Rsa rsa = new Rsa();
            secret = rsa.encryptByPublic(string);
        } catch (Exception e) {
            e.printStackTrace();
        }
        Log.e("ssss", "vipmessage_source===>" + string);
        return secret;
    }

}
